import request from '@/utils/request'

// 待盘点
export function queryCheckTaskDetails(data) {
  return request({
    url: '/storehouse/checkDiff/queryCheckTaskDetails',
    method: 'get',
	data
  })
}

// 已盘点
export function queryCheckTaskCompletedDetails(data) {
  return request({
    url: '/storehouse/checkDiff/queryCheckTaskCompletedDetails',
    method: 'get',
	data
  })
}

// 详情
export function queryCheckDetailInfos(data) {
  return request({
    url: '/storehouse/checkDiff/queryCheckDetailInfos',
    method: 'post',
	data
  })
}

// 盘点按钮
export function checkComplete(data) {
  return request({
    url: '/storehouse/checkDiff/checkComplete',
    method: 'post',
	data
  })
}





// 库存盘点任务列表
export function getStockCheckList(data) {
  return request({
    url: '/storehouse/stockCheck/listPda',
    method: 'get',
	data
  })
}

// 库存盘点任务明细
export function getStockCheckDetail(data) {
  return request({
    url: '/storehouse/stockCheckDetail/list',
    method: 'get',
	data
  })
}

// 库存盘点结果
export function checkResult(params,data) {
  return request({
    url: '/storehouse/checkResult/batchAdd',
    method: 'post',
	params,
	data
  })
}

// 库存盘点结果
export function finish(ids) {
  return request({
    url: '/storehouse/stockCheckDetail/finish/' + ids,
    method: 'put'
  })
}



// 库存盘点任务详情
export function getDetail(id) {
  return request({
    url: '/storehouse/stockCheck/getDetail/'+id,
    method: 'get'
  })
}

// 根据条码获取信息
export function infoByBarcode(barcode) {
  return request({
    url: '/storehouse/stock/getCheckByBarcode/'+barcode,
    method: 'get'
  })
}